from typing import TypedDict
from enum import Enum
class HeartbeatRequest(TypedDict):
    name:str

class ErrorCode(Enum):
    OK="ok"
    ACCESS_DENIED="deny"
    NOT_REGISTERED="notreg"
    INVALID_ARG="illarg"



class NormalResponse(TypedDict):
    error:int